import React, { Component } from 'react'
import { Text, View, Image} from 'react-native'
import Swiper from 'react-native-swiper'

import styles from './StyleHome'

export default class extends Component {
  render() {
    return (
      <View
        style={styles.swiper}
      >
        <Swiper
          showsButtons={true}
          autoplay={true}
        >
          <View
            style={styles.swiperItem}
          >
            <Image
              style={styles.swiperImage}
              source={{uri: 'http://www.placehold.it/750x500'}}>
            </Image>
          </View>
          <View
            style={styles.swiperItem}
          >
            <Image
              style={styles.swiperImage}
              source={{uri: 'http://www.placehold.it/700x500'}}></Image>
          </View>
        </Swiper>
      </View>
    )
  }
}